#!/usr/bin/python
# -*- coding: utf-8 -*-
# File: dialogs.py
# Author: Tomás Vírseda
# License: GPL v3
# Description: Common dialogs

import os
import gtk

from vazaarlib.constants import GUI_DIR

class AreYouSure:
    def __init__(self):
        GLADEFILE = os.path.join(GUI_DIR, "vazaar.glade")
        dialog_glade = gtk.glade.XML(GLADEFILE)
        self.dialog = dialog_glade.get_widget("dlgAreYouSure")

    def get_dialog(self):
        return self.dialog

